package com.fh.service.impl;

import com.fh.service.ProducerService;
import com.fh.utils.mq.MQProducerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author whf
 * @date 2024年04月08日 14:33
 */
@Service
public class ProducerServiceImpl implements ProducerService {

    @Autowired
    private MQProducerUtils mqProducerService;

    @Override
    public void sendMsg(String msgBody) {
        mqProducerService.sendMsg(msgBody);
    }

    @Override
    public void sendAsyncMsg(String msgBody) {
        mqProducerService.sendAsyncMsg(msgBody);
    }
}
